import { http } from '@/utils/request';
import { IResponse } from '@/api/types';


//列表
export const remoteList = (params: any) => {
    return http.get<IResponse>('/sys/depart/queryList', { params })
}
//新增
export const add = (data: any) => {
    return http.post<IResponse>('/sys/depart/create', data)
}
//新增
export const remove = (params: any) => {
    return http.delete<IResponse>('/sys/depart/delete', { params })
}
//新增
export const update = (data: any) => {
    return http.put<IResponse>('/sys/depart/update', data)
}

export default{
    remoteList
}